package com.huqing.icu.service.app;

import com.huqing.icu.base.PagingDto;
import com.huqing.icu.inout.req.app.CommunityPostAddReq;
import com.huqing.icu.inout.req.app.CommunityPostListQueryReq;
import com.huqing.icu.inout.resp.app.CommunityPostListQueryResp;
import com.huqing.icu.inout.resp.app.CommunityPostQueryDetailResp;

public interface ICommunityPostService {

    Integer addPost(CommunityPostAddReq addReq);

    PagingDto<CommunityPostListQueryResp> queryList(CommunityPostListQueryReq listQueryReq, Long userId);

    CommunityPostQueryDetailResp queryDetail(Long postId, Long userId);

    Integer delete(Long id, Long userId);

    Integer like(Long postId, Long userId);

    Integer favorite(Long postId, Long userId);

}
